﻿@import "Library.less";

html {
    margin: 0;
    padding: 0;
}

body {
    font: @font-size-normal/1.5 @fontFamaily;
}

body.front {
    margin: 0;
    padding: 0;
    color: @color-text;
}

body.mce-content-body {
    padding: @padding-base;
}

.affix {
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.affix-bottom {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 10;
}

.widget-design .affix {
    position: static;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: @color-link;
}

a:hover {
    color: @color-link-hover;
}

a.btn, .dropdown-menu a {
    text-decoration: none;
}

p {
    margin: 0 0 @margin-base * 0.5;
}

p:last-child {
    margin-bottom: 0;
}

.preview-toolbar {
    position: fixed;
    left: 5px;
    top: 5px;
    z-index: 1000;

    .dropdown-menu {
        right: 0;
        left: auto;
    }
}

.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    position: static;
}

.bs-callout {
    padding: @padding-base;
    margin: 0;
    border: @border-thin solid @color-main;
    border-top-width: @border-heavy;
    border-radius: 5px;
    background: @color-white;
}

.bs-callout .pull-left h4 {
    margin-top: @margin-base * 0.5;
    color: @color-text;
}

.bs-callout .pull-right h5 {
    color: @color-text-description;
}

.bs-callout-danger {
    border-color: @color-danger;
}

.bs-callout-danger .pull-left h4 {
    color: @color-danger;
}

.bs-callout-warning {
    border-color: @color-warning;
}

.bs-callout-warning .pull-left h4 {
    color: @color-warning;
}

.bs-callout-info {
    border-color: @color-info;
}

.bs-callout-info .pull-left h4 {
    color: @color-info;
}

.bs-callout-success {
    border-color: @color-success;
}

.bs-callout-success .pull-left h4 {
    color: @color-success;
}




.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    text-shadow: 0 -1px 0 @color-main-actived;
    border-color: @color-main;
    .background-image(@color-main,@color-main);
}

.list-group {
    margin-bottom: 0;
}

.space {
    padding: 5px 0;
    line-height: normal;
}

.preview-theme {
    position: fixed;
    right: 10px;
    top: 10px;

    a {
        color: @color-white;
    }
}

.btn-default {
    .background-image(@color-main-light,@color-main);
    border-color: @color-main-actived;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
    color: @color-white;
}

.btn-default:hover,
.btn-default:focus {
    .background-image(@color-main,@color-main-actived);
    background-position: 0;
    color: @color-white;
}

.btn-default:active:hover,
.btn-default.active:hover,
.open > .dropdown-toggle.btn-default:hover,
.btn-default:active:focus,
.btn-default.active:focus,
.open > .dropdown-toggle.btn-default:focus,
.btn-default:active.focus,
.btn-default.active.focus,
.open > .dropdown-toggle.btn-default.focus,
.btn-default:active,
.btn-default.active {
    .background-image(@color-main,@color-main-actived);
    border-color: @color-main-actived;
    color: @color-white;
}

.btn-flat {
    .background-image(@color-main,@color-main);
    border-color: @color-main-actived;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
    color: @color-white;
    border-radius: 0;
}

.btn-flat:hover,
.btn-flat:focus {
    .background-image(@color-main-actived,@color-main-actived);
    background-position: 0;
    color: @color-white;
    border-radius: 0;
}

.btn-flat:active:hover,
.btn-flat.active:hover,
.open > .dropdown-toggle.btn-flat:hover,
.btn-flat:active:focus,
.btn-flat.active:focus,
.open > .dropdown-toggle.btn-flat:focus,
.btn-flat:active.focus,
.btn-flat.active.focus,
.open > .dropdown-toggle.btn-flat.focus,
.btn-flat:active,
.btn-flat.active {
    .background-image(@color-main,@color-main);
    border-color: @color-main-actived;
    color: @color-white;
}

.btn.btn-wide {
    padding-left: 24px;
    padding-right: 24px;
}

.btn.btn-xs.btn-wide {
    padding-left: 13px;
    padding-right: 13px;
}

.btn.btn-sm.btn-wide {
    padding-left: 20px;
    padding-right: 20px;
}

.btn.btn-md.btn-wide {
    padding-left: 24px;
    padding-right: 24px;
}

.btn.btn-lg.btn-wide {
    padding-left: 30px;
    padding-right: 30px;
}

.field-validation-error {
    top: 10px;
    position: relative;
    background: @color-danger;
    color: white;
    padding: 1rem 1.2rem;
    border-radius: 3px;
    display: inline-block;
}

.field-validation-error:before {
    content: " ";
    display: block;
    border-top: 2px solid transparent;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid @color-danger;
    position: absolute;
    left: 10px;
    top: -10px;
}

figure.image {
    display: inline-block;
    border: 1px solid @color-border;
    margin: 0 2px 0 1px;
    background: @color-background;
}

figure.align-left {
    float: left;
}

figure.align-right {
    float: right;
}

figure.image img {
    margin: 8px 8px 0 8px;
}

figure.image figcaption {
    margin: 6px 8px 6px 8px;
    text-align: center;
}
